package com.zhuchaooasystem.adapter.holder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.zhuchaooasystem.R;
import com.zhuchaooasystem.entity.RecordEntity;

/**
 * @author yinsi
 */
public class RecordListHolder extends BaseViewHolder<RecordEntity.ResultBean.SuccessfulBean> {
    private TextView tv_topic;
    private TextView tv_remark;
    private TextView tv_time;
    private TextView tv_desc;

    public RecordListHolder(ViewGroup parent) {
        super(parent, R.layout.item_activity_record_vp_record_list);
        tv_topic = $(R.id.item_act_record_vp_record_list_tv_topic);
        tv_remark = $(R.id.item_act_record_vp_record_list_tv_remark);
        tv_time = $(R.id.item_act_record_vp_record_list_tv_time);
        tv_desc = $(R.id.item_act_record_vp_record_list_tv_desc);
    }

    @Override
    public void setData(final RecordEntity.ResultBean.SuccessfulBean record) {
        tv_topic.setText("录音主题：" + record.getTheme());
        tv_remark.setText("备注：" + record.getRemark());
        tv_time.setText(record.getServiceTime());
        tv_desc.setText("附件" + record.getCount() + "个录音文件");
    }

}
